package cn.ad.server.domain.ad;

import java.io.Serializable;
import java.util.Date;

public class GeoDistrict implements Serializable {

	/**
	 */
	private static final long serialVersionUID = 1801683041161930054L;
	static final String VERSION = "0";
	static final String CACHE_NAME = "geodistrict";

	private int id;
	private String name;
	private int status;
	private Date updateTime;
	private String englishName;
	
	public static String cacheKey(long id) {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(id).toString();
	}

	public String toCacheKey() {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(this.getId()).toString();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getEnglishName() {
		return englishName;
	}

	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}

	
}
